Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document adding alert rules #87

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Document adding alert rules #87

wants to merge 1 commit into from

Conversation

moan0s
Copy link
Member

@moan0s moan0s commented Aug 15, 2023

This is a PR as using this technique requires manual intervention on the server and we can question if wen want that to be an "offical" way of doing things. As I benefit from doing things like that I'd argue yes but I'm open to discussion

@moan0s moan0s added the documentation Improvements or additions to documentation label Aug 15, 2023
Comment on lines +92 to +96
# The alert rules were manually created in /mash/prometheus/config/alert.yml
# any update must be made there
# Setting this variable will tell prometheus to use the file you created
prometheus_config_rule_files_additional:
- "/etc/prometheus/alert.yml"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This example could also make use of ansible-role-aux role and manage the /mash/prometheus/config/alert.yml file using a aux_file_definitions variable.

Example:

aux_file_definitions:
  - dest: "{{ prometheus_config_path }}/alert.yml"
    owner: "{{ prometheus_uid }}"
    group: "{{ prometheus_gid }}"
    content: |
      something
      another

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants